<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.*,
						com.ophelisis.common.util.*,
						com.ophelisis.common.consts.*"%>
						
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=ConstPath.siteTitle%></title>
<link href="css/common.css" rel="stylesheet" />
<script src="js/jquery-1.7.2.js"></script>
<script src="js/common.js"></script>
<script>
var popupModule = {
		reset: function() {
			$("#popupForm").each(function(){
				this.reset();
			});
			
			parent.NcloseLayer();
		},
		
		save: function() {
			var logoFile = $("#logoFile");
			if (logoFile.val() == "") {
				alert("로고 이미지를 선택하여 주십시오.");
				return;
			}
			
			if (!confirm("해당 항목을 저장합니다. 계속 하시겠습니까?")) {
				return;
			}

			$("#popupForm").attr("action","logoAdd.action");
			$("#popupForm").submit();
		}
};
</script>
</head>
<body>
<div id="formlist1" class="noborder">
	<input type="hidden" id="loadCheck" name="loadCheck" value="OK" />
	<form id="popupForm" name="popupForm" method="post" enctype="multipart/form-data">
		<input type="hidden" id="_groupId" name="_groupId" value="${_groupId}" />
		<input type="hidden" id="_menuId" name="_menuId" value="${_menuId}" />
		<input type="hidden" id="_menuType" name="_menuType" value="${_menuType}" />
		<input type="hidden" id="_menuNm" name="_menuNm" value="${_menuNm}" />
		<input type="hidden" id="_menuAuth" name="_menuAuth" value="${_menuAuth}" />
		<input type="hidden" id="_prevUpCode" name="_prevUpCode" value="${_prevUpCode}" />
		<input type="hidden" id="_prevCode" name="_prevCode" value="${_prevCode}" />
		<input type="hidden" id="_startRowNo" name="_startRowNo" value="${_startRowNo}" />
		<input type="hidden" id="_pageSize" name="_pageSize" value="${_pageSize}" />
    	<input type="hidden" id="isNew" name="isNew" value="Y" />
		<table class="viewstyle1">
			<colgroup>
				<col width="130" />
				<col width="" />
			</colgroup>
			<tr>
				<td class="titleColumn" colspan="2">기본 정보</td>
			</tr>
			<tr>
				<th>로고 이미지</th>
	            <td>
	            <input type="file" id="logoFile" name="logoFile" class="input_text" />
	            </td>
			</tr>
		</table>
	</form>
	<div><span class="red pdl10">이미지는 최대 사이즈 285px * 50px 를 지원하며, 1MB 이하의 크기를 권장합니다.(너무 크면 로딩시간이 길어집니다.)</span></div>
	<div id="lowbtn">
		<a href="javascript:popupModule.reset();"><img src="images/btn/btn_cancel01.gif" /></a>
		<a href="javascript:popupModule.save();"><img src="images/btn/btn_save01.gif" /></a>  
	</div>
</div>
</body>
</html>

